﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Teris
{
    internal struct Position
    {
        public int x;
        public int y;

        public Position(int tx, int ty)
        { 
            x = tx;
            y = ty;
        }

        public static bool operator ==(Position p1, Position p2)
        { 
            return p1.x==p2.x && p1.y==p2.y;
        }

        public static bool operator !=(Position p1, Position p2)
        {
            return !(p1==p2);
        }

        public static Position operator +(Position p1, Position p2)
        {
            return new Position(p1.x+p2.x,p1.y+p2.y);
        }
    }
}
